package com.ruoyi.youtian.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 字典对象 dictionary
 *
 * @author ruoyi
 * @date 2022-09-06
 */
public class Dictionary extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long dictionaryId;

    /** 字典名称 */
    @Excel(name = "字典名称")
    private String dictionaryName;

    /** 分组 */
    @Excel(name = "分组")
    private String organization;

    /** 点位id */
    @Excel(name = "点位id")
    private String dictionaryValue;

    /**  是否可以编辑（0 可编辑 2不可编辑） */
    @Excel(name = " 是否可以编辑", readConverterExp = "0=,可=编辑,2=不可编辑")
    private String modifyFlag;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setDictionaryId(Long dictionaryId)
    {
        this.dictionaryId = dictionaryId;
    }

    public Long getDictionaryId()
    {
        return dictionaryId;
    }
    public void setDictionaryName(String dictionaryName)
    {
        this.dictionaryName = dictionaryName;
    }

    public String getDictionaryName()
    {
        return dictionaryName;
    }
    public void setOrganization(String organization)
    {
        this.organization = organization;
    }

    public String getOrganization()
    {
        return organization;
    }
    public void setDictionaryValue(String dictionaryValue)
    {
        this.dictionaryValue = dictionaryValue;
    }

    public String getDictionaryValue()
    {
        return dictionaryValue;
    }
    public void setModifyFlag(String modifyFlag)
    {
        this.modifyFlag = modifyFlag;
    }

    public String getModifyFlag()
    {
        return modifyFlag;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("dictionaryId", getDictionaryId())
            .append("dictionaryName", getDictionaryName())
            .append("organization", getOrganization())
            .append("dictionaryValue", getDictionaryValue())
            .append("modifyFlag", getModifyFlag())
            .append("delFlag", getDelFlag())
            .append("remark", getRemark())
            .toString();
    }
}
